package com.yipao.db.domain.goods;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 商品配方
 *
 * @author tianhao
 * @date 2020/4/29 18:45
 **/
@Data
@NoArgsConstructor
public class GoodsFormula {
    /**
     * 主键
     */
    private Integer id;
    /**
     * 配方名称
     */
    private String name;
    /**
     * 原料id
     */
    private String materialId;
    /**
     * 配方温度属性id,多个用逗号隔开
     */
    private String tempAttrId;
    /**
     * 甜度属性id,多个用逗号隔开
     */
    private String sweetAttrId;
    /**
     * 配方属性浓度id,多个用逗号隔开
     */
    private String denseAttrId;
    /**
     * 创建时间
     */
    private LocalDateTime addTime;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;
    /**
     * 逻辑删除
     */
    private Integer deleted;

    public GoodsFormula(String name, String materialId, String tempAttrId, String sweetAttrId, String denseAttrId) {
        this.name = name;
        this.materialId = materialId;
        this.tempAttrId = tempAttrId;
        this.sweetAttrId = sweetAttrId;
        this.denseAttrId = denseAttrId;
    }

    public GoodsFormula(Integer id, String name, String materialId, String tempAttrId, String sweetAttrId, String denseAttrId) {
        this.id = id;
        this.name = name;
        this.materialId = materialId;
        this.tempAttrId = tempAttrId;
        this.sweetAttrId = sweetAttrId;
        this.denseAttrId = denseAttrId;
    }
}
